package ui.magic.magiclibs.container.Base;

import android.view.Gravity;

/**
 * Created by liushiyin on 2017/10/22.
 */

/*
*保存LinearMagicUi和FrameMagicUi中子节点的信息
 */
public class Percent {
    public float perx;
    public float pery;
    public int gravity;
    public int left;
    public int top;
    public int right;
    public int bottom;

    public Percent(float perx,float pery){
        this.perx=perx;
        this.pery=pery;
        this.gravity= Gravity.CENTER;
        left=0;
        top=0;
        right=0;
        bottom=0;
    }

    public Percent(float perx,float pery,int gravity){
        this.perx=perx;
        this.pery=pery;
        this.gravity= gravity;
        left=0;
        top=0;
        right=0;
        bottom=0;
    }
}
